﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using WLYT.Domain.Model.CAEAModel;
using WLYT.Domain.Model;
using WLYT.Application.Services;

namespace WLYT.WMS.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class CaeaController(OrderService orderService) : ControllerBase
    {
        [HttpPost]
        public Task<ApiResult> SyncOrder([FromBody] OrderModel model)
        {
            return orderService.SyncOrder(model);
        }
    }
}
